<template>
  <a-card :bordered="true" title="保存完成" style="margin-top: 24px">
    <a-result
      :status="result ? 'success':'error'"
      :title="result ? '保存成功！' : '保存失败！'"
    >
    </a-result>
    <a-button ></a-button>
  </a-card>
</template>
<script>
import { postAction } from '../../../api/manage'

export default {
  data() {
    return {
      loading: false,
      result: false,
      url: {
        addSpu: '/product/spuInfo/addSpu'
      }
    }
  },
  methods: {
    prev() {
      this.$emit('prev')
    },
    submit(params) {
      this.loading = true
      postAction(this.url.addSpu, params).then(res => {
        if (res.success) {
          this.result = true
        } else {
          this.result = false
        }
        console.log(res)
      }).finally(() => {
        this.loading = false
      })
    }

  }
}
</script>
<style scoped>

</style>